package com.joker.warehouse.service;

import com.joker.warehouse.domain.Purchase;
import com.joker.warehouse.domain.dto.PurchaseDTO;
import com.joker.warehouse.domain.vo.PurchaseVO;

import java.util.List;

/**
 * @author lemon
 * @date 2025/01/13 21:30
 **/
public interface IPurchaseService {
    /**
     * 生成采购单
     * @param purchaseDTO 采购单
     */
    void save(PurchaseDTO purchaseDTO);

    /**
     * 采购单审核
     * @param purchaseId 采购单id
     * @param status 状态
     */
    void check(Long purchaseId, Integer status);

    /**
     * 采购单列表
     * @param purchase 查询条件
     * @return 采购单列表
     */
    List<PurchaseVO> selectPmsPurchaseList(Purchase purchase);
}
